import Vue from './vue.js'
import App from './App.js'//只导入App模块
new Vue({
	el: '#app',
	components: {App},
})

	document.getElementById("aBtn").onclick = function () {
		//异步加载A.js
		require.ensure([], ()=>{
			let a = require('./A.js')
			console.log(a)
		})
	}
	document.getElementById("bBtn").onclick = function () {
		//异步加载B.js
		import('./B.js').then(module => {
			console.log('异步加载成功', module)
		}).catch(err => {
			console.log('错误回调', err)
		})
	}